<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath(); 
String showTitle = request.getParameter("showTitle");
%>
<style>
.sy_links{
	margin-top: 20px;
	padding-left: 5px;
}
.sy_links SELECT{
	width: 175px;
	font-size: 12px;
}
.sy_links_bottom{
		margin-bottom: 20px;
	}
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function goRelatedLink(linkPath){
	if(linkPath != null && linkPath != ""){
		window.open(linkPath,'','');
	}
}
//-->
</SCRIPT>
<div class="sys-portlet">
	<%if(showTitle != null && showTitle.equals("1")){ %>
	<div class="sys-title1 sys-title-bg1">
		<span class="sys-title-txt1 sys-title-txtbg sys-title-color1">
			<img class="sys-title-ico" src="<%=path %>/res/themes/${sessionScope.SESSION_STREET_THEME.thStyle}/imgs/ico_link.gif" />
			<s:property value="#parameters.title"/>
		</span>
	</div>
	<%} %>
	<div class="portlet-body">
		<div class="sy_links">
			<SELECT name="" onChange="goRelatedLink(this.value)">
				<option value=""> -------- 省级网站 -------- </option>
				<s:iterator value="linkList">
					<s:if test="linkType == \"0\"">
						<option value="<s:property value="linkPath"/>"><s:property value="linkName"/></option>
					</s:if>
				</s:iterator>
			</SELECT>
		</div>
		<div class="sy_links">
			<SELECT name="" onChange="goRelatedLink(this.value)">
				<option value=""> -------- 市级网站 -------- </option>
				<s:iterator value="linkList">
					<s:if test="linkType == \"1\"">
						<option value="<s:property value="linkPath"/>"><s:property value="linkName"/></option>
					</s:if>
				</s:iterator>
			</SELECT>
		</div>
		<div class="sy_links sy_links_bottom">
			<SELECT name="" onChange="goRelatedLink(this.value)">
				<option value=""> -------- 其他网站 -------- </option>
				<s:iterator value="linkList">
					<s:if test="linkType == \"2\"">
						<option value="<s:property value="linkPath"/>"><s:property value="linkName"/></option>
					</s:if>
				</s:iterator>
			</SELECT>
		</div>
	</div>
</div>